<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<s:property value="#application.website.keywords"/>" />
<meta name="description" content="<s:property value="#application.website.description"/>" />
<title>商家-<s:property value="#application.website.websiteName"/></title>
<link href="css/css.css"  type="text/css" rel="stylesheet"/>
<link href="css/css.css"  type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="js/tools/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/tools/jqueryurl.js"></script>
<script type="text/javascript" src="admin/js/public.js"></script>
<script>
var user='yes';
$(function(){
categoryList("categoryId",2,-1);
});
function search()
{
   var categoryId=$("#categoryId").val();
   var subCategoryId=$("#subCategoryId").val();
   var searchStr=$.trim($("#seatchStr").val());
   
     window.location.href='business.action?page=1&searchStr='+categoryId+"_"+subCategoryId+"_"+encodeURI(encodeURI(searchStr));
   
}
</script>
</head>
<body>
 <div id="container">
   <div id="Header">
     <jsp:include page="../header.jsp"></jsp:include>
   </div>
   <div id="PageBody">
     <div class="mina">
       <div class="subleft">
         <div class="subnav">
           <img src="images/zy_27.gif" />
           <ul>
             <s:iterator value="categoryList" id="id">
                   <li><a href="business.action?page=1&searchStr=<s:property value="#id[0].id"/>_-2_"><s:property value="#id[0].name"/></a></li>
                    <s:if test="%{#id[1].size!=0}">
                       <s:set name="str" ><s:property value="#id[0].id"/></s:set>
                       <s:if test="%{business.categoryId==#str}">
                         <div class="navclass" style="display:block;">
                       </s:if>
                       <s:else>
                          <div class="navclass">
                       </s:else>
	                    <s:iterator value="#id[1]">
	                        -<a href="business.action?page=1&searchStr=<s:property value="pid"/>_<s:property value="id"/>_" hasbox="2">&nbsp;<s:property value="name"/></a> <br />
	                    </s:iterator>
			            </div>
                    </s:if>
             </s:iterator>
           </ul>
           <div class="navbott">资合信-易通卡</div>
         </div>
         <div class="search">
          <div><p>商户类别&nbsp;&nbsp;
           <select id="categoryId" style="width:120px;" onchange="categoryList('subCategoryId',2,$(this).val());"></select></p>
           <p>商户区域&nbsp;&nbsp;
             <select id="subCategoryId" style="width:120px;"><option value="-2">请选择类别</option></select></p>
           <p>
             <input type="image" onclick="search()" name="imageField" id="imageField" src="images/zy_28.gif" style="border:0px; float:right; margin-right:12px; height:22px" /><input id="seatchStr" type="text"style="width:115px;" />
           </p>
           </div>
         </div>
         
           <jsp:include page="../context.jsp"></jsp:include>
        
       </div>
       <div class="subright">
         <div class="subright01">
           <div class="subtitle"><span>位置：<s:property value="path" escape="false"/></span>
             <h1>加盟商家</h1>
           </div>
           <div class="subright02">
           <div class="activitybox">
             <div class="vendor">
               <h1><s:property value="business.name"/></h1>
               <div class="vimg"><img src="<s:property value="business.image"/>" /></div>
               <div class="vinfo">商户分类：<s:property value="business.categoryId"/><s:property value="business.subCategoryId"/><br />
                 所在地址：<s:property value="business.address"/><br />
                 <span>金卡折扣信息:<s:property value="business.goldDiscount"/></span><br />
                 <span>VIP&nbsp;&nbsp;折扣信息:<s:property value="business.vipDiscount"/></span><br />
                 咨询电话：<s:property value="business.tel"/><br />
               </div>
             </div>
             <div class="vtitle">商户介绍</div>
             <div class="vbox">
                <s:property value="business.introduction" escape="false"/>
              </div>
             <div class="vtitle">所有店面</div>
           </div>
             <div class="activitybox" style="padding-bottom:20px; margin-top:5px">
              <s:iterator value="branchBusinessList" id="id">
                <div class="showbox">
	               <div class="imgbox"><a href="business!businessDetial.action?business.id=<s:property value="#id[0].id"/>" target="_blank"><img src="<s:property value="#id[0].image"/>" /></a></div>
	               <div class="boxcont">
	               <p><span>金卡折扣：<s:property value="#id[0].goldDiscount"/>&nbsp;&nbsp;VIP折扣：<s:property value="#id[0].vipDiscount"/>
	</span><a href="business!businessDetial.action?business.id=<s:property value="#id[0].id"/>" target="_blank"><s:property value="#id[0].name"/></a><br />
	                </p>
	               所属分类：<s:property value="#id[1].name"/>&nbsp;&nbsp;<s:property value="#id[2].name"/>&nbsp;&nbsp;&nbsp;&nbsp;<br />
	               咨询电话：<s:property value="#id[0].tel"/><br />
	               商户地址：<s:property value="#id[0].address"/><br />
	               </div>
	             </div>
              </s:iterator>
             </div>
           </div>
         </div>
       </div>
     </div>
   </div>
   <div id="Footer">
     <jsp:include page="../bottom.jsp"></jsp:include>
   </div>
 </div>
</body>
</html>
